let todolist = "todolist";

export let setTodoList = function (data) {
    localStorage.setItem(todolist, JSON.stringify(data))
}

export let getTodoList = function () {
    return JSON.parse(localStorage.getItem(todolist) || '[]')
}
